@extends('layouts.layouts')
@section('title')
    <title>用户指南</title>
@endsection
@section('content')
<style type="text/css">
.sweet-alert h2{font-size:12px;text-align:left;line-height: 20px;}
.content_click{color:red;}
</style>
<div class="content">
        <div class="header">       
            <h1 class="page-title">用户指南-意见反馈</h1>
             <ul class="breadcrumb"></ul>
        </div>
        <div class="main-content">
<div class="btn-toolbar list-toolbar">
    <!--<a href="/help/add"><button class="btn btn-primary"><i class="fa fa-plus"></i>意见反馈</button></a>-->
    <!--<button class="btn btn-default">Import</button>
    <button class="btn btn-default">Export</button>-->
  <div class="btn-group">
  </div>
</div>
 <div class="panel panel-default">

   <div class="panel-heading no-collapse">意见反馈<!-- <span class="label label-warning">+10</span> --></div>
<table class="table table-hover">
  <thead>
    <tr>
      <th>序号</th>
      <th>问题名称</th>
      <th>用户手机</th>
      <th>反馈内容</th>
      <th>是否处理</th>
      <th>添加时间</th>
      <th>操作</th>
    </tr>
    </tr>
  </thead>
  <tbody>
<div class="panel-group">
@if(!is_array($list))
	@foreach($list as $v)
		<tr>
				  <td>{{$v->id}}</td>
				  <td>{{$v->title}}</td>
          <td>{{$v->phone}}</td>
          <td class="content_click" data-attr="{{$v->content}}">点击查看</td>
				  <td>@if($v->status == 0 ) <a href="/help/feedUpdate?id={{$v->id}}">未处理</a> @else <b>已处理</b> @endif</td>
          <td>{{$v->created_at}}</td>
				  <td width="30%">
					  <a href="/help/feedDel?id={{$v->id}}" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i>删除</a>
				  </td>
		</tr>
	@endforeach
@endif
</div>
  </tbody>
</table>
</div>
<ul class="pagination">
</ul>
</div>


</div>
<script src="lib/bootstrap/js/bootstrap.js"></script>
    <script>

        $(".link").click(function(){
           // console.log($(this).next());
            $(this).next().toggleClass('submenu1');
        })
        $(".content_click").click(function(){
              var obj = $(this);
              var arr = obj.attr("data-attr");
              swal(arr);

        })
    </script>
@endsection
